package com.vhall.component.controller.anchors.console;


import com.vhall.component.entity.anchors.dto.AnchorManagePageRspListVO;
import com.vhall.component.entity.anchors.vo.AnchorManagePageListVO;
import com.vhall.component.entity.page.vo.PageVO;
import com.vhall.component.service.anchors.AnchorManageService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * console端 主播表 前端控制器
 *
 * @author wangxing
 * @since 2022-09-28
 */
@RestController
@RequestMapping("/v4/anchor-manage/console")
@RequiredArgsConstructor
public class CslAnchorManageController {
    private final AnchorManageService service;

    /**
     * console端-主播账户的分页列表,用于进行房间主播关联
     *
     * @param vo 参数
     * @return 分页列表
     */
    @GetMapping("/list")
    public PageVO<AnchorManagePageRspListVO> list(AnchorManagePageListVO vo) {
        return service.pageList(vo);
    }

}

